package com.kayang.webapi.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@Component
@Data
@RefreshScope
@ConfigurationProperties(prefix = "webapi")
public class WebApiConfig {

    private String whiteIPList = "ALL";

    //token过期时间  单位分钟
    private int expirationSpan = 5;

    private boolean loadUserProperties = true;

    //单点token失效时间  单位 秒
    private int bsTokenTimeout = 60;

    private boolean  log2db = false;

}
